package com.ukao.pad.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by ukaodev on 2017/7/12.
 */

public class BatchlTabBean extends  BaseBean<BatchlTabBean>  {


        /**
         * pageNum : 1
         * pageSize : 12
         * size : 1
         * orderBy : null
         * startRow : 1
         * endRow : 1
         * total : 1
         * pages : 1
         * list : [{"mercId":1,"finishText":"完成","code":"79460954","factoryId":2,"productCnt":1,"factoryName":"观象二路","cityId":1,"isFinish":1,"storeId":19,"factoryWorkTime":1501657021000,"logisticsWorkPhone":null,"annexCnt":1,"logisticsWorkName":null,"logisticsWorkTime":null,"statusText":"待物流人员接收","storeWorkTime":null,"storeName":"再添加门店","id":15,"status":1}]
         * firstPage : 1
         * prePage : 0
         * nextPage : 0
         * lastPage : 1
         * isFirstPage : true
         * isLastPage : true
         * hasPreviousPage : false
         * hasNextPage : false
         * navigatePages : 8
         * navigatepageNums : [1]
         */

        private int pageNum;
        private int pageSize;
        private int size;
        private String orderBy;
        private int startRow;
        private int endRow;
        private int total;
        private int pages;
        private int firstPage;
        private int prePage;
        private int nextPage;
        private int lastPage;
        private boolean isFirstPage;
        private boolean isLastPage;
        private boolean hasPreviousPage;
        private boolean hasNextPage;
        private int navigatePages;
        private List<ListBean> list;
        private List<Integer> navigatepageNums;

        public int getPageNum() {
            return pageNum;
        }

        public void setPageNum(int pageNum) {
            this.pageNum = pageNum;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public String getOrderBy() {
            return orderBy;
        }

        public void setOrderBy(String orderBy) {
            this.orderBy = orderBy;
        }

        public int getStartRow() {
            return startRow;
        }

        public void setStartRow(int startRow) {
            this.startRow = startRow;
        }

        public int getEndRow() {
            return endRow;
        }

        public void setEndRow(int endRow) {
            this.endRow = endRow;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getFirstPage() {
            return firstPage;
        }

        public void setFirstPage(int firstPage) {
            this.firstPage = firstPage;
        }

        public int getPrePage() {
            return prePage;
        }

        public void setPrePage(int prePage) {
            this.prePage = prePage;
        }

        public int getNextPage() {
            return nextPage;
        }

        public void setNextPage(int nextPage) {
            this.nextPage = nextPage;
        }

        public int getLastPage() {
            return lastPage;
        }

        public void setLastPage(int lastPage) {
            this.lastPage = lastPage;
        }

        public boolean isIsFirstPage() {
            return isFirstPage;
        }

        public void setIsFirstPage(boolean isFirstPage) {
            this.isFirstPage = isFirstPage;
        }

        public boolean isIsLastPage() {
            return isLastPage;
        }

        public void setIsLastPage(boolean isLastPage) {
            this.isLastPage = isLastPage;
        }

        public boolean isHasPreviousPage() {
            return hasPreviousPage;
        }

        public void setHasPreviousPage(boolean hasPreviousPage) {
            this.hasPreviousPage = hasPreviousPage;
        }

        public boolean isHasNextPage() {
            return hasNextPage;
        }

        public void setHasNextPage(boolean hasNextPage) {
            this.hasNextPage = hasNextPage;
        }

        public int getNavigatePages() {
            return navigatePages;
        }

        public void setNavigatePages(int navigatePages) {
            this.navigatePages = navigatePages;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public List<Integer> getNavigatepageNums() {
            return navigatepageNums;
        }

        public void setNavigatepageNums(List<Integer> navigatepageNums) {
            this.navigatepageNums = navigatepageNums;
        }

        public static class ListBean implements Parcelable {
            /**
             * mercId : 1
             * finishText : 完成
             * code : 79460954
             * factoryId : 2
             * productCnt : 1
             * factoryName : 观象二路
             * cityId : 1
             * isFinish : 1
             * storeId : 19
             * factoryWorkTime : 1501657021000
             * logisticsWorkPhone : null
             * annexCnt : 1
             * logisticsWorkName : null
             * logisticsWorkTime : null
             * statusText : 待物流人员接收
             * storeWorkTime : null
             * storeName : 再添加门店
             * id : 15
             * status : 1
             */

            private int mercId;
            private String finishText;
            private String code;
            private int factoryId;
            private int productCnt;
            private String factoryName;
            private int cityId;
            private int isFinish;
            private int storeId;
            private long factoryWorkTime;
            private String logisticsWorkPhone;
            private int annexCnt;
            private String logisticsWorkName;
            private String logisticsWorkTime;
            private String statusText;
            private String storeWorkTime;
            private String storeName;
            private int id;
            private int status;

            public int getMercId() {
                return mercId;
            }

            public void setMercId(int mercId) {
                this.mercId = mercId;
            }

            public String getFinishText() {
                return finishText;
            }

            public void setFinishText(String finishText) {
                this.finishText = finishText;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public int getFactoryId() {
                return factoryId;
            }

            public void setFactoryId(int factoryId) {
                this.factoryId = factoryId;
            }

            public int getProductCnt() {
                return productCnt;
            }

            public void setProductCnt(int productCnt) {
                this.productCnt = productCnt;
            }

            public String getFactoryName() {
                return factoryName;
            }

            public void setFactoryName(String factoryName) {
                this.factoryName = factoryName;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public boolean getIsFinish() {
                boolean isfinish=false;
                if (isFinish==1){
                    isfinish=true;
                }
                return isfinish;
            }

            public void setIsFinish(int isFinish) {
                this.isFinish = isFinish;
            }

            public int getStoreId() {
                return storeId;
            }

            public void setStoreId(int storeId) {
                this.storeId = storeId;
            }

            public long getFactoryWorkTime() {
                return factoryWorkTime;
            }

            public void setFactoryWorkTime(long factoryWorkTime) {
                this.factoryWorkTime = factoryWorkTime;
            }

            public String getLogisticsWorkPhone() {
                return logisticsWorkPhone;
            }

            public void setLogisticsWorkPhone(String logisticsWorkPhone) {
                this.logisticsWorkPhone = logisticsWorkPhone;
            }

            public int getAnnexCnt() {
                return annexCnt;
            }

            public void setAnnexCnt(int annexCnt) {
                this.annexCnt = annexCnt;
            }

            public String getLogisticsWorkName() {
                return logisticsWorkName;
            }

            public void setLogisticsWorkName(String logisticsWorkName) {
                this.logisticsWorkName = logisticsWorkName;
            }

            public String getLogisticsWorkTime() {
                return logisticsWorkTime;
            }

            public void setLogisticsWorkTime(String logisticsWorkTime) {
                this.logisticsWorkTime = logisticsWorkTime;
            }

            public String getStatusText() {
                return statusText;
            }

            public void setStatusText(String statusText) {
                this.statusText = statusText;
            }

            public String getStoreWorkTime() {
                return storeWorkTime;
            }

            public void setStoreWorkTime(String storeWorkTime) {
                this.storeWorkTime = storeWorkTime;
            }

            public String getStoreName() {
                return storeName;
            }

            public void setStoreName(String storeName) {
                this.storeName = storeName;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
            }


            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.mercId);
                dest.writeString(this.finishText);
                dest.writeString(this.code);
                dest.writeInt(this.factoryId);
                dest.writeInt(this.productCnt);
                dest.writeString(this.factoryName);
                dest.writeInt(this.cityId);
                dest.writeInt(this.isFinish);
                dest.writeInt(this.storeId);
                dest.writeLong(this.factoryWorkTime);
                dest.writeString(this.logisticsWorkPhone);
                dest.writeInt(this.annexCnt);
                dest.writeString(this.logisticsWorkName);
                dest.writeString(this.logisticsWorkTime);
                dest.writeString(this.statusText);
                dest.writeString(this.storeWorkTime);
                dest.writeString(this.storeName);
                dest.writeInt(this.id);
                dest.writeInt(this.status);
            }

            public ListBean() {
            }

            protected ListBean(Parcel in) {
                this.mercId = in.readInt();
                this.finishText = in.readString();
                this.code = in.readString();
                this.factoryId = in.readInt();
                this.productCnt = in.readInt();
                this.factoryName = in.readString();
                this.cityId = in.readInt();
                this.isFinish = in.readInt();
                this.storeId = in.readInt();
                this.factoryWorkTime = in.readLong();
                this.logisticsWorkPhone = in.readString();
                this.annexCnt = in.readInt();
                this.logisticsWorkName = in.readString();
                this.logisticsWorkTime = in.readString();
                this.statusText = in.readString();
                this.storeWorkTime = in.readString();
                this.storeName = in.readString();
                this.id = in.readInt();
                this.status = in.readInt();
            }

            public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
                @Override
                public ListBean createFromParcel(Parcel source) {
                    return new ListBean(source);
                }

                @Override
                public ListBean[] newArray(int size) {
                    return new ListBean[size];
                }
            };
        }




}
